﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace CotizacionPresencialPaquetes.Models
{
    public class InfoProgramaWord
    {
        public int PROGRAMAID { get; set; }
        [Required(AllowEmptyStrings = false, ErrorMessage = "Debe ingresar el nombre")]
        public string NOMBRE { get; set; }
                
        public string TELEFONO { get; set; }

        [Required(AllowEmptyStrings = true)]
        [RegularExpression(@"[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}", ErrorMessage="El mail no tiene formato correcto")]
        public string MAIL { get; set; }

        public DateTime FECHA_IN { get; set; }

        //[DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:##,0.00}", NullDisplayText = "")]
        //[Required(ErrorMessage = "El monto es requerido")]
        [Range(0, 100000000, ErrorMessage = "El precio no está en el rango válido")]
        //[RegularExpression("\\d+([\\.\\,][\\d])?", ErrorMessage="El campo no tien un formato válido")]
        public int MONTO { get; set; }
    }
}